package com.oliet.service;

import com.oliet.common.vo.file.DownloadVO;
import com.oliet.common.vo.file.FileResourceVO;
import com.oliet.common.vo.page.PageVO;
import com.oliet.entity.FileResources;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author JZP
 * @since 2023-12-22
 */
public interface FileResourcesService extends IService<FileResources> {

    void upload(MultipartFile file);

    void batchUpload(MultipartFile[] files);

    DownloadVO download(Long id) throws IOException;

    void delete(Long id);

    PageVO<FileResourceVO> pageList(Long pageNo, Long pageSize, String classType, String fileType, String displayPosition, String search);

    void batchUploadOther(MultipartFile[] files, String classType, String fileType, String displayPosition);
}
